package com.ruoyi.project.api.user;


import com.ruoyi.common.utils.IpUtils;
import com.ruoyi.common.utils.http.HttpUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.config.service.IConfigService;
import com.ruoyi.project.system.info.domain.BCompanyInfo;
import com.ruoyi.project.system.info.service.IBCompanyInfoService;
import com.ruoyi.project.user.entity.LoginByMobileReq;
import com.ruoyi.project.user.service.ITUserService;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.ObjectUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * 用户端登陆验证
 *
 */
@RestController
@RequestMapping("/api/companyInfo")
public class WebCompanyInfoController extends BaseController {

    @Autowired
    IBCompanyInfoService companyInfoService;


    private static final Logger log = LoggerFactory.getLogger(WebCompanyInfoController.class);




    @ApiOperation("获取免责声明")
    @Log(title = "APP接口管理", businessType = BusinessType.OTHER)
    @GetMapping("/getCompanyInfo")
    public AjaxResult  getCompanyInfo () {
        BCompanyInfo companyInfo = companyInfoService.selectBCompanyInfoById(1L);
        return AjaxResult.success("成功",companyInfo);
    }



}
